package com.study.nacos.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author MI
 * @version 1.0
 * @date 2020/10/17 20:43
 */
@RestController
public class ProviderController {

    @Value("${server.port}")
    String port;

    @GetMapping("/service")
    public String service() {
        System.out.println("provider invoke");
        return "provider invoke" + port;
    }

}
